package model

type GvImRoom struct {
	ID          uint   `json:"id" gorm:"primaryKey;autoIncrement;comment:房间id"`
	Number      string `json:"number" gorm:"index;comment:房间号"`
	Name        string `json:"name" gorm:"comment:房间名称"`
	Description string `json:"description" gorm:"comment:房间描述"`
	UserID      uint   `json:"user_id" gorm:"index;not null;comment:房间创建者的用户id"`
	CreatedAt   int64  `json:"created_at" gorm:"autoCreateTime;comment:房间创建时间"`
	UpdatedAt   int64  `json:"updated_at" gorm:"autoUpdateTime;comment:房间更新时间"`
}

func (GvImRoom) TableName() string {
	return "gv_im_room"
}
